package com.perceptivesoftware.licensing.dao;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.perceptivesoftware.licensing.dao.generated.TwUserprivDAO;
import com.perceptivesoftware.licensing.domain.generated.TwUserpriv;

@Repository
public class TwUserprivDaoExt extends TwUserprivDAO
{
	@Autowired
	TwUservalDaoExt ntUservalDaoExt;

	public List<TwUserpriv> findByUserId(final String userId)
	{
		return findByProperty("twUserval", ntUservalDaoExt.findById(userId));
	}
}
